﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PBDesk.com.Extension.Articles
{
    public class OContentProvider
    {
        public string Name { get; set; }
        public string Desc { get; set; }
        public string Email { get; set; }
        public string Twitter { get; set; }
        public string Facebook { get; set; }
        public string GooglePlus { get; set; }
        public string LinkWebsite { get; set; }
        public string LinkRss { get; set; }
        public string Link3 { get; set; }

        public List<OImage> Images { get; set; }
        public OContentProvider()
        {
            Images = new List<OImage>();
        }

        public OContentProvider(dynamic cprovider)
        {
            if (cprovider != null)
            {                
                this.Name = cprovider.providerName;
                this.Desc = cprovider.providerDesc;
                this.Email = cprovider.providerEmail;
                this.LinkWebsite = cprovider.providerWebsite;
                this.LinkRss = cprovider.providerRssLink;
                this.Link3 = cprovider.providerLink3;
                this.Twitter = cprovider.twitterHandle;
                this.Facebook = cprovider.facebookLink;
                this.GooglePlus = cprovider.googlePlusLink;
            }
            Images = new List<OImage>();
        }
       
    }
}